/**
 * @author SilverBiology, LLC
 * @website http://code.google.com/p/gbif-spreadsheet-processor/
*/
Ext.namespace('GBIF');
Ext.namespace('GBIF.GeoSpatial');

GBIF.GeoSpatial.FeatureTabManager = function(config){
	
	var tabs = [];
	
	var info = new GBIF.GeoSpatial.FeatureInfo({
		itemId:'info'
	});
				
	tabs.push(info);
	
	GBIF.GeoSpatial.BUS.on('addTab',function(featuregrid){
			this.add(featuregrid);
	}, this);

	Ext.apply(this, config, {
			border: false
		,	activeItem:0
		,	width:'100%'
		,	layout:'card'
		,	enableTabScroll: true
		,	defaults: { 
					autoScroll: true
				, border: false 
			}
		,	items: [ tabs]	
	});

	GBIF.GeoSpatial.FeatureTabManager.superclass.constructor.apply(this, arguments);
}	

Ext.extend(GBIF.GeoSpatial.FeatureTabManager , Ext.Panel, {	
});